import request from '@/utils/request'

// 获得商户分润配置
export function getShopDistribution(query) {
    return request({
        url: '/pekingFish/tenant-profit-config/getByTenantId',
        method: 'get',
        params: query
    })
}

// 创建商户分润配置
export function createShopDistribution(data) {
    return request({
        url: '/pekingFish/tenant-profit-config',
        method: 'post',
        data: data
    })
}

// 更新商户分润配置
export function updateShopDistribution(data) {
    return request({
        url: '/pekingFish/tenant-profit-config',
        method: 'put',
        data: data
    })
}


// 获得商户分润配置分页
export function getShopDistributionPage(query) {
    return request({
        url: '/pekingFish/tenant-profit-config/pageTenantProfitConfigs',
        method: 'get',
        params: query
    })
}

// 根据id获取对应商户分润配置信息
export function getShopDistributionById(query) {
    return request({
        url: '/pekingFish/tenant-profit-config/getById',
        method: 'get',
        params: query
    })
}